using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework.Graphics; //  Spritebatch
using Microsoft.Xna.Framework.Content;  //  content


namespace MenesDroid
{
    class Telas : List<Tela>
    {
        public enum TiposTela
        {
            TelaInicial = 0,
            Tela2 = 1
        }
        public TiposTela TelaAtual = TiposTela.TelaInicial;

        public void Draw(SpriteBatch Renderizador2D)
        {
            this[Convert.ToInt32(TelaAtual)].Draw(Renderizador2D);
        }

        public void Add(Texture2D Tela)
        {
            //Call the 'real' add method 
            this.Add(new Tela(Tela));
        }

        public void Unload()
        {
            foreach(Tela tela in this)
                tela.Unload();
        }
    }
}
